import RequestComp from "containers/request/request";
import NewRequestComp from "containers/request/new-edit-request";
import RequestEditComp from "containers/request/new-edit-request";
import RequestDetailComp from "containers/request/base-request-detail";

// 绿码申请单
const greenCodeApplication = {
    key:'green-code-request',
    url: '/main/green-code/green-code-request',
    components: RequestComp,
    icon: "file-text",
    company: true,
    children: {
        //列表
        listRequest: {
          key: 'list-green-code-request',
          url: '/main/green-code/green-code-request',
          components: RequestComp,
          parent: 'green-code-request'
        },
        //新建申请单
        newRequest: {
          key: 'new-green-code-request',
          url: '/main/green-code/green-code-request/new-green-code-request/:formOID/:applicantOID/:jobId/:ifProxy',
          components: NewRequestComp,
          parent: 'green-code-request'
        },
        //编辑申请单
        requestEdit: {
          key: 'green-code-request-edit',
          url: '/main/green-code/green-code-request/green-code-request-edit/:formOID/:applicationOID',
          components: RequestEditComp,
          parent: 'green-code-request'
        },
        //申请单详情
        requestDetail: {
          key: 'green-code-request-detail',
          url: '/main/green-code/green-code-request/green-code-request-detail/:formOID/:applicationOID/:pageFrom',
          components: RequestDetailComp,
          parent: 'green-code-request'
        }
      }
}

export default greenCodeApplication
